package com.briup.day27.bean;

public class Student {
    public String id;
    private String name;
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    private String getId() {
        return id;
    }

    private void setId(String id) {
        this.id = id;
    }

    public Student() {
    }
    private Student(String id){
        System.out.println("private Student ......");
        this.id=id;
    }
    public Student(String id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
